﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Api.Models
{

    #region 更新用户信息
    public class ReqUserModel
    {
        public string UserName { get; set; }

        //性别(0未知，1男，2女)
        public int? SexID { get; set; }

        public DateTime? BirthDay { get; set; }

        public string PhoneNo { get; set; }
    }
    #endregion

    #region 注册
    public class ReqRegisterModel
    {
        public string Account { get; set; }

        public string Password { get; set; }

        public int Device { get; set; }

        public string PushId { get; set; }

        public bool IsProduction { get; set; }

        public string DeviceModel { get; set; }
    }
    #endregion

    #region 修改帐号
    public class ReqChangeAccountEntity
    {
        public string Account { get; set; }
        public string Password { get; set; }
    }
    #endregion

    #region 重置密码
    public class ReqRestPasswordModel
    {
        public string OldPassword { get; set; }

        public string Password { get; set; }
    }
    #endregion

    #region 代码更新
    public class ReqDroneCodeModel : ReqDroneCodeBaseModel
    {
        public int Id { get; set; }
    }
    #endregion

    #region 代码上传[基类]
    public class ReqDroneCodeBaseModel
    {
        public string Title { get; set; }

        public string Code { get; set; }
    }
    #endregion

    #region 登录
    public class ReqLoginModel
    {
        public string Account { get; set; }

        public string Password { get; set; }

        public string PushID { get; set; }

        public int Device { get; set; }

        public string DeviceModel { get; set; }
    }
    #endregion

    #region 第三方登录
    public class ReqSNSAuthModel
    {
        //1、QQ  2、微信 3、微博
        public int PlatformId { get; set; }

        public string AccessToken { get; set; }

        public string Id { get; set; }

        public string NickName { get; set; }

        public long Expire { get; set; }

        public string PushId { get; set; }

        public int Device { get; set; }

        public string DeviceModel { get; set; }


        public bool IsProduction { get; set; }
    }
    #endregion

    #region 找回密码[短信]
    public class ReqFindPwdBySMSModel
    {
        public string Account { get; set; }

        public string Code { get; set; }
    }
    #endregion

    #region 重置密码
    public class ReqResetPwdModel
    {
        public string PhoneNo { get; set; }

        public string Email { get; set; }

        public string Password { get; set; }

        public string Code { get; set; }
    }
    #endregion

    #region 找回密码验证账号
    public class ReqFindPwdModeBaseModel
    {
        public string Account { get; set; }

        //找回类型
        public int TypeId { get; set; }
    }
    #endregion

}